package com.ruoyi.restaurant.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消费记录对象 sys_bill
 * 
 * @author ruoyi
 * @date 2022-04-18
 */
public class SysBill extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消费记录ID */
    private Long billId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 消费金额 */
    @Excel(name = "消费金额")
    private BigDecimal billMoney;

    /** 折扣后金额 */
    @Excel(name = "折扣后金额")
    private String billSales;

    /** 订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    public void setBillId(Long billId) 
    {
        this.billId = billId;
    }

    public Long getBillId() 
    {
        return billId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setBillMoney(BigDecimal billMoney) 
    {
        this.billMoney = billMoney;
    }

    public BigDecimal getBillMoney() 
    {
        return billMoney;
    }
    public void setBillSales(String billSales) 
    {
        this.billSales = billSales;
    }

    public String getBillSales() 
    {
        return billSales;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("billId", getBillId())
            .append("orderId", getOrderId())
            .append("billMoney", getBillMoney())
            .append("billSales", getBillSales())
            .append("orderTime", getOrderTime())
            .toString();
    }
}
